package metier.sercurity;

import javax.xml.bind.DatatypeConverter;


public class PasswordEncryptor {

	public static String encode(String pass){
		String encodeds1 = DatatypeConverter.printBase64Binary(pass.getBytes());
		return encodeds1 ;
	}

	public static String decode(String pass){
		byte[] decodeds1= DatatypeConverter.parseBase64Binary(pass);
		return new String(decodeds1) ;
	}
}
